package com.xinjiang.electricpower.controller;

import com.xinjiang.electricpower.domain.DTO.KettlePullDataTaskVo;
import com.xinjiang.electricpower.service.IMarketPullDataTask;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhanghui
 * @date 2023/2/14 11:20
 * @Description
 */
@RestController
@RequestMapping("/xinjiang-order-data")
public class KettlePullDataTaskController {

    @Autowired
    private IMarketPullDataTask iMarketPullDataTask;

    @PostMapping("/run-market-task")
    @ApiOperation(value = "拉取营销系统工单数据", notes = "拉取营销系统工单数据/新装数据")
    public void runMarketTaskParam(@RequestBody KettlePullDataTaskVo vo){
        iMarketPullDataTask.runMarketTaskParam(vo);
    }

}
